﻿using System;
using System.Xml.Serialization;

namespace RssToolkit.Rss
{
    /// <summary>
    /// Использование .GetParam(PostParams.MediaThumbnail).ToString() - правильно!
    ///<media:thumbnail url = "https://cdn.liveleak.com/80281E/ll_a_u/thumbs/2016/Feb/23/df52b13350c4_thumb_5.jpg" width="120" height="90"/>
    /// </summary>
    [Serializable]
    public class Thumbnail
    {
        [XmlAttribute("url", Namespace = "http://search.yahoo.com/mrss/")] 
        public string url;

        [XmlAttribute("width", Namespace = "http://search.yahoo.com/mrss/")] 
        public int width;

        [XmlAttribute("height", Namespace = "http://search.yahoo.com/mrss/")]
        public int height;
    }

}